package com.yaowk.service.mall.clothing.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * 地址
 */
@Getter
@Setter
@ToString
@Entity
@DynamicUpdate
@DynamicInsert
public class CmAddress extends BaseEntity<Long> {

    private String address;
    private String province;
    private String city;
    private String district;
    private String phone;
    private String consignee;
    @ColumnDefault("0")
    private Byte isDefault;

    @ManyToOne
    private CmMember member;
}
